#pragma once
#include "Cat.h"
class cage
{
private:
	vector <Cat*> catarray;
	//vector <Cat,Cat> fightpair;
public:
	void output();
	void getcat(Cat*);
	void display();
	//void fight(vector<Cat*>);
	//void checkdiffer(vector<Cat*>& differpair)
	//void checkdiffer();
};
void cage::getcat(Cat* c)
{
	this->catarray.push_back(c);
	cout << "size: " << catarray.size() << endl;
}
void cage::display()
{
	cout << catarray.size();
	for (int i = 0; i < catarray.size(); i++)
	{
		catarray[i]->getinfo();
	}
}
void cage::output()
{
	for (int i = 0; i < this->catarray.size(); i++)
	{
		for (int j = i+1; j < this->catarray.size(); j++)
		{
			if (this->catarray.at(j)->EyeColor != this->catarray.at(i)->EyeColor|| this->catarray.at(j)->FurColor != this->catarray.at(i)->FurColor)
			{
				//cout << "1: " << this->catarray.at(j)->EyeColor << endl;
				cout << "Fight Cat: ";
				this->catarray.at(j)->getinfo();
				cout << "VS:        ";
				this->catarray.at(i)->getinfo();
			}	
		}
	}
}
